package com.itheima.demo1;

public class Vehicle {
    private String brand;
    private String type;

    public  Vehicle(){
    }
    public  Vehicle(String brand,String type){
        this.brand =brand;
        this.type = type;
    }

    public void setBrand(String brand){
        this.brand = brand;
    }
    public void setType(String type){
        this.type = type;
    }
    public String getBrand(){
        return brand;
    }
    public String getType(){
        return type;
    }

    public void start(){
        System.out.println(brand + type +"开始启动");
    }
    public void run(){
        System.out.println(brand + type + "在高速公路上行驶");
    }
}
